import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';

@Component({
  selector: 'app-top-menu',
  templateUrl: './top-menu.component.html',
  styleUrls: ['./top-menu.component.css']
})
export class TopMenuComponent implements OnInit {

  constructor(
    private router:Router
  ) { }

  ngOnInit(): void {
  }


  changePage(path:string):void{
    this.router.navigate([path])
  }
}
